package com.ruoyi.depot.domain.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class LocalInventoryVO {
    private String inventoryId;
    private String sku;
    private Long productId;
    private Long warehouseId;
    private Integer actualQuantity;

    // 商品信息
    private String productName;
    private List<String> productImage;
    private String warehouseName;
    private Integer version;

    // 聚合字段
    private Integer totalActualQuantity;
    private Integer availableQuantity;
    private Integer totalLockedQuantity;
    private Integer totalDefectiveQuantity;
    private Integer totalInspectionQuantity;
    private Integer totalArrivedQuantity;
    private Integer stockAge030;
    private Integer stockAge3160;
    private Integer stockAge6190;
    private Integer stockAge91180;
    private Integer stockAge181270;
    private Integer stockAge271330;
    private Integer stockAge331365;
    private Integer stockAge366Plus;
    private BigDecimal productTotalStockCost;

    // 时间字段
    private Date createdAt;
    private Date updatedAt;
}
